package com.wltjack.sysmanage.modules.demo1.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wltjack.sysmanage.modules.demo1.dto.DeptListDto;
import com.wltjack.sysmanage.modules.demo1.dto.DeptAddDto;
import com.wltjack.sysmanage.modules.demo1.dto.DeptPageDto;
import com.wltjack.sysmanage.modules.demo1.entity.Dept;

import java.util.Map;

/**
 * @InterfaceName DeptService
 * @Description DeptService
 * @Author kangliang
 * @Date 2021/03/01 13:49
 * @Version 1.0
 */
public interface DeptService {

    Map<String, Object> list(DeptListDto dto);

    boolean insert(DeptAddDto dto);

    /**
     * 功能描述: 查询dept分页记录
     *
     * @param dto 入参
     * @return: dept分页记录
     * @Author: kangliang
     * @Date: 2021-07-05 19:36
     */
    Page<Dept> queryDeptPage(DeptPageDto dto);

}
